home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 97 / CD-ROM 97 / CD-ROM 97.iso / internet / ghostzilla / ghsetup.exe / chrome / comm.jar / content / editor / EdImageMap.xul < prev    next >
Encoding:
Extensible Markup Language  |  2002-04-09  |  8.2 KB  |  175 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.    - The contents of this file are subject to the Netscape Public
  4.    - License Version 1.1 (the "License"); you may not use this file
  5.    - except in compliance with the License. You may obtain a copy of
  6.    - the License at http://www.mozilla.org/NPL/
  7.    -  
  8.    - Software distributed under the License is distributed on an "AS
  9.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.    - implied. See the License for the specific language governing
  11.    - rights and limitations under the License.
  12.    -  
  13.    - The Original Code is Mozilla Communicator client code, released
  14.    - March 31, 1998.
  15.    - 
  16.    - The Initial Developer of the Original Code is Netscape
  17.    - Communications Corporation. Portions created by Netscape are
  18.    - Copyright (C) 1999-2000 Netscape Communications Corporation. All
  19.    - Rights Reserved.
  20.    - 
  21.    - Contributor(s): 
  22.     - Brian King (briano9@yahoo.com)
  23.     - Dan Haddix (dan6992@hotmail.com)
  24.   -->
  25.  
  26. <?xml-stylesheet href="chrome://editor/skin/EdImageMap.css" type="text/css"?> 
  27. <!-- Methods common to all editor dialogs -->
  28. <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  29. <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  30.  
  31. <?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
  32.  
  33. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  34. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> 
  35.  
  36. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorImageMap.dtd">
  37.  
  38. <!-- dialog containing a control requiring initial setup -->
  39. <dialog title="&windowTitle.label;"
  40.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  41.     onload = "Startup()"
  42.     buttons="accept,cancel,help"
  43.     ondialogaccept="return finishMap();"
  44.     ondialogcancel="return onCancel();"
  45.     ondialoghelp="return doHelpButton();">
  46.  
  47.   <!-- Methods common to all editor dialogs -->
  48.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  49.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js" />
  50.   <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
  51.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  52.  
  53.   <!-- Methods for Image Map only -->
  54.   <script type="application/x-javascript" src="chrome://editor/content/EdImageMap.js" />
  55.   <script type="application/x-javascript" src="chrome://editor/content/EdImageMapShapes.js" />
  56.  
  57.   <broadcaster id="args" value=""/>
  58.  
  59.   <keyset id="dialogKeys">
  60.  
  61.     <key id="deletespot"   keycode="VK_DELETE"   oncommand="deleteElement(currentElement)" />
  62.     <key id="nudgeup"      keycode="VK_UP"       oncommand="nudge(event, 'up')" />
  63.     <key id="nudgeleft"    keycode="VK_LEFT"     oncommand="nudge(event, 'left')" />
  64.     <key id="nudgedown"    keycode="VK_DOWN"     oncommand="nudge(event, 'down')" />
  65.     <key id="nudgeright"   keycode="VK_RIGHT"    oncommand="nudge(event, 'right')" />
  66.     <key id="mapclearkb"    key="&clear.accesskey;" command="Map:Clear"  modifiers="accel"/>
  67.     <key id="mapselectkb"   key="&selectall.accesskey;" command="Map:SelectAll"  modifiers="accel"/>
  68.     <key id="mapclosekb"    key="&close.accesskey;" command="Map:Close"  modifiers="accel"/>
  69.     <key id="mapcutkb"      key="&cut.accesskey;" command="Map:Cut"  modifiers="accel"/>
  70.     <key id="mapcopykb"     key="©.accesskey;" command="Map:Copy"  modifiers="accel"/>
  71.     <key id="mappastekb"    key="&paste.accesskey;" command="Map:Paste"  modifiers="accel"/>
  72.     <key id="mappropskb"    key="&props.accesskey;" command="Map:Props"  modifiers="accel"/>
  73.     <key id="maptbarkb"     key="&tbar.accesskey;" command="Map:ViewToolbar"  modifiers="accel"/>
  74.  
  75.   </keyset>
  76.  
  77.   <commandset id="commands">
  78.     <command id="Map:Clear" label="&clearCmd.label;" oncommand=""/>
  79.     <command id="Map:Close" label="&closeCmd.label;" oncommand="exitImageMap()"/>
  80.     <command id="Map:Copy" label="©Cmd.label;" disabled="true" oncommand="cutCopy()"/>
  81.     <command id="Map:Cut" label="&cutCmd.label;" disabled="true" oncommand="cutCopy(true)"/>
  82.     <command id="Map:Paste" label="&pasteCmd.label;" disabled="true" oncommand="paste()"/>
  83.     <command id="Map:Props" label="&propsCmd.label;" oncommand="hotSpotProps(currentElement[0])"/>
  84.     <command id="Map:ViewToolbar" label="&showhideTbarCmd.label;" oncommand="hideToolbar()"/>
  85.     <command id="Map:Apercent" label="&apercentCmd.label;" checked="true" oncommand="zoom('', 1)"/>
  86.     <command id="Map:Bpercent" label="&bpercentCmd.label;" oncommand="zoom('', 2)"/>
  87.     <command id="Map:Cpercent" label="&cpercentCmd.label;" oncommand="zoom('', 4)"/>
  88.     <command id="Map:ZoomIn" label="&zoominCmd.label;" oncommand="zoom('in')"/>
  89.     <command id="Map:ZoomOut" label="&zoomoutCmd.label;" disabled="true" oncommand="zoom('out')"/>
  90.     <command id="Map:SelectAll" label="&selectallCmd.label;" oncommand="selectAll()"/>
  91.   </commandset>
  92.  
  93.   <!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
  94.   <broadcaster id="dialog.start" ready="false"/>
  95.   <observes element="dialog.start" attribute="ready" onchange="EditorStartup('html')"/>
  96.  
  97. <toolbox class="toolbox-top" id="ImageMapToolbox">    
  98. <menubar persist="collapsed">
  99.   <!-- File menu -->
  100.   <menu id="mapfileMenu" label="&mapfileMenu.label;" accesskey="&mapfilemenu.accesskey;">
  101.     <menupopup>
  102.       <menuitem accesskey="&mapfileclear.accesskey;" key="mapclearkb" command="Map:Clear"/>
  103.       <menuitem accesskey="&mapfileclose.accesskey;" key="mapclosekb" command="Map:Close"/>
  104.     </menupopup>
  105.   </menu>
  106.  
  107.   <!-- Edit menu -->
  108.   <menu id="mapeditMenu" label="&mapeditMenu.label;" accesskey="&mapeditmenu.accesskey;">
  109.     <menupopup>
  110.       <menuitem accesskey="&mapselectall.accesskey;" key="mapselectkb" command="Map:SelectAll"/>
  111.       <menuitem accesskey="&mapeditcut.accesskey;" key="mapcutkb" command="Map:Cut"/>
  112.       <menuitem accesskey="&mapeditcopy.accesskey;" key="mapcopykb" command="Map:Copy"/>
  113.       <menuitem accesskey="&mapeditpaste.accesskey;" key="mappastekb" command="Map:Paste"/>
  114.       <menuseparator/>
  115.       <menuitem accesskey="&mapeditprops.accesskey;" key="mappropskb" command="Map:Props"/>
  116.     </menupopup>
  117.   </menu>
  118.  
  119.   <!-- View menu -->
  120.   <menu id="mapviewMenu" label="&mapviewMenu.label;" accesskey="&mapviewmenu.accesskey;">
  121.     <menupopup>
  122.       <menuitem id="view_hidetoolbar" accesskey="&mapviewtbar.accesskey;" key="maptbarkb" command="Map:ViewToolbar"/>
  123.       <menu id="mapscalingMenu" label="&mapviewScale.label;" accesskey="&mapviewscale.accesskey;">
  124.         <menupopup>
  125.           <menuitem accesskey="&zoomone.accesskey;" key="" command="Map:Apercent"/>
  126.           <menuitem accesskey="&zoomtwo.accesskey;" key="" command="Map:Bpercent"/>
  127.           <menuitem accesskey="&zoomthree.accesskey;" key="" command="Map:Cpercent"/>
  128.         </menupopup>
  129.       </menu>
  130.     </menupopup>
  131.   </menu>
  132.  
  133.   <spacer flex="1"/>
  134. </menubar>
  135.  
  136.  
  137. <toolbar id="toolbar" class="toolbar-primary" persist="collapsed">
  138.   <button id="cutButton" class="button-toolbar-2 top" command="Map:Cut"/>
  139.   <button id="copyButton" class="button-toolbar-2 top" command="Map:Copy"/>
  140.   <button id="pasteButton" class="button-toolbar-2 top" command="Map:Paste"/>
  141.   <button id="zoomInButton" class="button-toolbar-2 top" command="Map:ZoomIn"/>
  142.   <button id="zoomOutButton" class="button-toolbar-2 top" command="Map:ZoomOut"/>
  143.   <spacer flex="1"/>
  144. </toolbar> 
  145. </toolbox>
  146.  
  147. <hbox id="outer-box" flex="1">
  148.  
  149.   <toolbar id="toolbox" orient="vertical">
  150.   <vbox>
  151.     <button id="pointerButton" class="tool" toggled="1" oncommand="changeTool(event, 'pointer');"/>
  152.     <button id="rectButton" class="tool" oncommand="changeTool(event, 'rect');"/>
  153.     <button id="cirButton" class="tool" oncommand="changeTool(event, 'cir');"/>
  154.     <button id="polyButton" class="tool" oncommand="changeTool(event, 'poly');"/>
  155.     <spacer flex="1"/>
  156.   </vbox>
  157.   </toolbar>
  158.  
  159.   <!-- Content Area -->
  160.   <iframe id="content" src="EdImageMapPage.html" flex="1"
  161.     onmousedown="top.downMouse(event)"
  162.     onmouseup="top.upMouse(event)" 
  163.     onmousemove="top.moveMouse(event)"
  164.     onclick="top.clickMouse(event)" 
  165.   />
  166.  
  167. </hbox>
  168.  
  169.   <!-- from EdDialogOverlay -->
  170.   <!-- not sure if this is needed, but put it in just in case 
  171.   <hbox id="AdvancedEditButton"/> -->
  172.  
  173.   <separator class="groove"/>
  174. </dialog>
  175.